package edu.ybu.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ybu.manage.mapper.DingMapper;
import edu.ybu.manage.mapper.EntorMapper;
import edu.ybu.manage.pojo.Ding;
import edu.ybu.manage.pojo.Entor;
import edu.ybu.manage.service.DingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DingServiceImpl extends ServiceImpl<DingMapper, Ding> implements DingService {
    @Autowired
    private DingMapper dingMapper;

    public Integer insert(Ding ding) {
        int insert = dingMapper.insert(ding);
        return insert;
    }

    @Override
    public Integer update(Ding ding) {
        int i = dingMapper.updateById(ding);
        return i;
    }

    @Override
    public Integer delect(Integer id) {
        int i = dingMapper.deleteById(id);
        return i;
    }
}
